// 
import request from '@/config/axios'

// 获取角色列表
export const getRoleListApi = (params:any) => {
  return request.get({ url: '/api/system/role/list',params})
}
// 修改角色信息
export const editRoleApi = (params: any) => {
  return request.put({ url: '/api/system/role', data: params })
}
// 新增角色信息
export const addRoleApi = (params: any) => {
  return request.post({ url: '/api/system/role', data: params })
}
// 删除角色
export const deteleRoleApi = (id:any) => {
  return request.delete({ url: `/api/system/role/${id}`})
}
// 获取角色详情
export const getRoleDetailApi = (id:any) => {
  return request.get({ url: `/api/system/role/${id}`})
}

// 获取角色列表
export const getRoleOptionselectApi = () => {
  return request.get({ url: '/api/system/role/optionselect'})
}

